#ifndef GLOBALGAMEMSGER_H
#define GLOBALGAMEMSGER_H

#include <QObject>
class globalGameMsger : public QObject
{
    Q_OBJECT
private:
    explicit globalGameMsger(QObject *parent = nullptr);
public:
    static const globalGameMsger m;
signals:
    void gameBegin(int gamemode)const;
    void gameOver()const;
    void gameRestart()const;
    void jump(float)const;
    void addScore()const;
    void shiftPressed()const;
    void ZPressed()const;
    void onVoiceFrequency(float)const;//float frequency(raw)
    void onScaledNote(int)const;
    void onVoiceAmp(float)const;//float volume
    void controlByFrequencyAndVolume(float freq,float volume)const;
};

#endif // GLOBALGAMEMSGER_H
